﻿<?xml version="1.0" encoding="utf-8" ?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="MSH.Common.Business" assembly="Common">

<class name="ChatMessage" table="ChatMessage">

  <id name="ID">
    <generator class="native">
      <param name="sequence">SeqChatMessageID</param>
    </generator>
  </id>

  <property name="Message">
    <column name="MESSAGE" length="500" not-null="false"/>
  </property>

  <property name="MessageTimestamp">
    <column name="TIMESTAMP" not-null="false"  />
  </property>

  <many-to-one name="FromUser"
  column="FromUser" cascade="none" fetch="join" not-null="false"/>

</class>

</hibernate-mapping>

